import { createRouter, createWebHashHistory } from 'vue-router'

const routes = [
    {
        path: '/',
        name: 'main',
        component: () => import('../views/main.vue'),
    },
    {
        path: '/pokemon',
        name: 'pokemon-list',
        component: () => import('../views/pokemon.vue'),
    },
    {
        path: '/pokemon/:id',
        name: 'pokemon-detail',
        component: () => import('../views/PokemonDetail.vue'),
    }
]

const router = createRouter({
    history: createWebHashHistory(),
    routes
})

export default router